import{_ as e,U as n,V as i,Y as a}from"./framework-65d5b469.js";const s={},d=a(`<h1 id="基础配置" tabindex="-1"><a class="header-anchor" href="#基础配置" aria-hidden="true">#</a> 基础配置</h1><h2 id="窗口" tabindex="-1"><a class="header-anchor" href="#窗口" aria-hidden="true">#</a> 窗口</h2><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>const win = new BrowserWindow({
    x: cusX,
    y: cusY,
    width: area.width * 0.5,
    height: area.height * 0.5,
    frame: false, // 无边框
    transparent: true, // 透明度
    alwaysOnTop: true, // 窗口置顶
    resizable: false, // 是否可以改变大小
    webPreferences: {
        preload: path.join(__dirname, &#39;preload.js&#39;),
        nodeIntegration: true, // 是否使用nodejs 的特性
        contextIsolation: false
    },
    // 禁用窗口阴影，否则在mac系统选中时会有图片的阴影
    hasShadow: false
})
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div>`,3),r=[d];function l(t,c){return n(),i("div",null,r)}const o=e(s,[["render",l],["__file","基础配置.html.vue"]]);export{o as default};
